
import layout from '@/views/market/module/Layout'
export default [
  {
    path: '/market',
    name: 'market',
    component: () => import('@/views/market/lis'),
    affiliation: 'main',
    meta: { title: '公开算法', icon: 'icon8', name: 'market' },
  },
  {
    path: '/market/algorithmdetail',
    name: 'algorithmdetail',
    component: () => import('@/views/market/algorithmdetail'),
    // affiliation: 'main',
    meta: { title: '算法市场', icon: 'icon8', name: 'algorithmdetail' },
  },
  {
    path: '/market/algorithmversionsdetail',
    name: 'algorithmversionsdetail',
    component: () => import('@/views/market/algorithmversionsdetail'),
    // affiliation: 'main',
    meta: { title: '算法版本', icon: 'icon8', name: 'algorithmversionsdetail' },
  },

  {
    path: '/market/modeldetail',
    name: 'modeldetail',
    component: () => import('@/views/market/modeldetail'),
    // affiliation: 'main',
    meta: { title: '模型市场', icon: 'icon8', name: 'modeldetail' },
  },
  {
    path: '/market/modelversionsdetail',
    name: 'modelversionsdetail',
    component: () => import('@/views/market/modelversionsdetail'),
    // affiliation: 'main',
    meta: { title: '算法版本', icon: 'icon8', name: 'modelversionsdetail' },
  },
  {
    path: '/market',
    name: 'market',
    component: layout,
    // affiliation: 'main',
    meta: { title: '公开算法', icon: 'icon8', name: 'market' },
    children: [
      {
        path: 'code',
        name: 'marketcode',
        component: () => import('@/views/market/code'),
        meta: {
          title: '概览',
          icon: 'nav-menu-icon1',
          affiliation: "market"
        }
      },
      {
        path: 'file',
        name: 'marketfile',
        component: () => import('@/views/market/file'),
        meta: {
          title: '根目录',
          icon: 'nav-menu-icon1',
          affiliation: "market"
        }
      },
    ]
  },
]
